;Assembler header file for DDEUtils
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:07:19 2005
;Jonathan Coxhead, jonathan@doves.demon.co.uk, 8 Sept 1996

        [       :LNOT: :DEF: DDEUtils_Hdr
        GBLS    DDEUtils_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

        [       :LNOT: :DEF: Get_Wimp
        GBLS    Get_Wimp
        ]
        [       :LNOT: :DEF: Wimp_Hdr
Get_Wimp                        SETS    "GET oslib/Wimp.Hdr"
        |
Get_Wimp                        SETS    ""
        ]
        $Get_Wimp

;Symbols for constants
DDEUtils_SeverityWarning        *       0
DDEUtils_SeverityError          *       1
DDEUtils_SeveritySeriousError   *       2
DDEUtils_ThrowbackProcessing    *       0
DDEUtils_ThrowbackErrorDetails  *       1
DDEUtils_ThrowbackInfoDetails   *       2
Error_DDEUtilsUnknownSWI        *       &20600
Error_DDEUtilsNoCLIBuffer       *       &20601
Error_DDEUtilsNotDesktop        *       &20602
Error_DDEUtilsNoTask            *       &20603
Error_DDEUtilsAlreadyRegistered *       &20604
Error_DDEUtilsNotRegistered     *       &20605
Message_DDEUtilsThrowbackStart  *       &42580
Message_DDEUtilsProcessingFile  *       &42581
Message_DDEUtilsErrorsIn        *       &42582
Message_DDEUtilsErrorDetails    *       &42583
Message_DDEUtilsThrowbackEnd    *       &42584
Message_DDEUtilsInfoForFile     *       &42585
Message_DDEUtilsInfoDetails     *       &42586

;Symbols for structure offsets and sizes
                                ^       0
DDEUtils_MessageProcessingFile_file_name #       236*Char
DDEUtils_MessageProcessingFile  *       @

                                ^       0
DDEUtils_MessageErrorsIn_file_name #       236*Char
DDEUtils_MessageErrorsIn        *       @

                                ^       0
DDEUtils_MessageErrorDetails_line_no #       Int
DDEUtils_MessageErrorDetails_severity #       Int
DDEUtils_MessageErrorDetails_message #       228*Char
DDEUtils_MessageErrorDetails    *       @

                                ^       0
DDEUtils_MessageInfoForFile_file_name #       236*Char
DDEUtils_MessageInfoForFile     *       @

                                ^       0
DDEUtils_MessageInfoDetails_line_no #       Int
DDEUtils_MessageInfoDetails_severity #       Int
DDEUtils_MessageInfoDetails_message #       228*Char
DDEUtils_MessageInfoDetails     *       @

                                ^       0
DDEUtils_FullMessageProcessingFile Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageProcessingFile_file_name #       236*Char
DDEUtils_FullMessageProcessingFile *       @

                                ^       0
DDEUtils_FullMessageErrorsIn    Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageErrorsIn_file_name #       236*Char
DDEUtils_FullMessageErrorsIn    *       @

                                ^       0
DDEUtils_FullMessageErrorDetails Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageErrorDetails_line_no #       Int
DDEUtils_FullMessageErrorDetails_severity #       Int
DDEUtils_FullMessageErrorDetails_message #       228*Char
DDEUtils_FullMessageErrorDetails *       @

                                ^       0
DDEUtils_FullMessageInfoForFile Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageInfoForFile_file_name #       236*Char
DDEUtils_FullMessageInfoForFile *       @

                                ^       0
DDEUtils_FullMessageInfoDetails Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageInfoDetails_line_no #       Int
DDEUtils_FullMessageInfoDetails_severity #       Int
DDEUtils_FullMessageInfoDetails_message #       228*Char
DDEUtils_FullMessageInfoDetails *       @


;Symbols for SWI's and SWI reason codes
XDDEUtils_Prefix                *       &62580
DDEUtils_Prefix                 *       &42580
   ;Entry
   ;  R0 -> dir_name (String)

XDDEUtils_SetCLSize             *       &62581
DDEUtils_SetCLSize              *       &42581
   ;Entry
   ;  R0 = size (Int)
   ;Exit
   ;  R0 corrupted

XDDEUtils_SetCL                 *       &62582
DDEUtils_SetCL                  *       &42582
   ;Entry
   ;  R0 -> tail (String)

XDDEUtils_GetCLSize             *       &62583
DDEUtils_GetCLSize              *       &42583
   ;Exit
   ;  R0 = size (Int)

XDDEUtils_GetCl                 *       &62584
DDEUtils_GetCl                  *       &42584
   ;Entry
   ;  R0 = tail (pointer to String)

XDDEUtils_ThrowbackRegister     *       &62585
DDEUtils_ThrowbackRegister      *       &42585
   ;Entry
   ;  R0 = task (Wimp_T)

XDDEUtils_ThrowbackUnRegister   *       &62586
DDEUtils_ThrowbackUnRegister    *       &42586
   ;Entry
   ;  R0 = task (Wimp_T)

XDDEUtils_ThrowbackStart        *       &62587
DDEUtils_ThrowbackStart         *       &42587

XDDEUtils_ThrowbackSend         *       &62588
DDEUtils_ThrowbackSend          *       &42588
   ;Entry
   ;  R0 = reason (Int)
   ;  R2 -> file_name (String)
   ;  R3 = line_no (Int)
   ;  R4 = severity (Int)
   ;  R5 -> message (String)
   ;Exit
   ;  R5 corrupted

XDDEUtils_ThrowbackEnd          *       &62589
DDEUtils_ThrowbackEnd           *       &42589
   ;Exit
   ;  R4 corrupted

XDDEUtils_ReadPrefix            *       &6258A
DDEUtils_ReadPrefix             *       &4258A

XDDEUtils_FlushCL               *       &6258B
DDEUtils_FlushCL                *       &4258B

        ]
        END
